package com.qf.controller;

import com.qf.pojo.Pet;
import com.qf.service.PetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class PetController {
    @Autowired
    PetService petService;
    @RequestMapping("/findByPetAll")
    public List<Pet> findByPetAll(){
        return petService.findByPetAll();
    }
}
